﻿using DAL.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL.Persistencia
{
    public class DepositoDAL
    {

        private NewTierraEntities Con;

        public DepositoDAL()
        {
            Con = new NewTierraEntities();
        }



        public void inserir(Deposito d)
        {

            try
            {
                Con.AddToDeposito(d);
                Con.SaveChanges();
            }
            catch
            {
                
                throw;
            }

        }

        
    }
}
